<?php

/**
 * DmUserAdminForm for admin generators
 *
 * @package    sfDoctrineGuardPlugin
 * @subpackage form
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
 * @version    SVN: $Id: DmUserAdminForm.class.php 23536 2009-11-02 21:41:21Z Kris.Wallsmith $
 */
class DmUserAdminForm extends BaseDmUserAdminForm
{
  public function configure()
  {
    parent::configure();
  }
  //form upload image
   protected function createMediaFormForPhoto()  
  {  
    // get the DmMedia form  
    $form = parent::createMediaFormForPhoto();  
 
    // choose mime types allowed  
    $form->setMimeTypeWhiteList(array(  
      'image/jpeg',  
      'image/png'  
    ));  
   //remove form field for image
   unset($form['legend'], $form['author'], $form['license']);  
    return $form; 
  }
}
